package com.jack.vipmis.vip.wei.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;

import org.springframework.format.annotation.DateTimeFormat;

import com.jack.vipmis.common.entity.BaseEntity;

/**
 * 微贴信息
 * 
 * @author JackLiang
 * @version 1.1
 * @date 2014-8-27
 */
@Entity
@Table(name = "vip_wei_info")
public class WeiEntity extends BaseEntity<Long> {

	private static final long	serialVersionUID	= 1L;

	@Column
	@NotNull(message = "not.null")
	private String				title;

	@Column
	private long				userId;

	@Column
	private String				content;

	@Column
	private String				images;

	/**
	 * 
	 */
	@Column(name = "create_time")
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date				createTime			= new Date();
	/**
	 * 预留
	 */
	@Column
	private String				ext;

	// getter setter
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getImages() {
		return images;
	}

	public void setImages(String images) {
		this.images = images;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getExt() {
		return ext;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

}
